These calls aren't necessary anymore.
window = gdk_window_new (gtk_widget_get_parent_window (widget),
&attributes, attributes_mask);
gtk_widget_set_window (widget, window);
- gdk_window_set_back_pixmap (window, NULL, FALSE);
gdk_window_set_user_data (window, widget);
gtk_widget_get_allocation (widget, &allocation);
win->window = gdk_window_new (window,
&attributes, attributes_mask);
- gdk_window_set_back_pixmap (win->window, NULL, FALSE);
-
gdk_window_show (win->window);
gdk_window_set_user_data (win->window, win->widget);
gdk_window_lower (win->window);
/* Add them all up. */
gtk_widget_style_attach (widget);
- gdk_window_set_back_pixmap (window, NULL, FALSE);
style = gtk_widget_get_style (widget);
gdk_window_set_background (tree_view->priv->bin_window,
&style->base[gtk_widget_get_state (widget)]);
if (gtk_widget_get_realized (widget))
{
- gdk_window_set_back_pixmap (gtk_widget_get_window (widget), NULL, FALSE);
style = gtk_widget_get_style (widget);
gdk_window_set_background (tree_view->priv->bin_window,
&style->base[gtk_widget_get_state (widget)]);
if (gtk_widget_get_realized (widget))
{
- gdk_window_set_back_pixmap (gtk_widget_get_window (widget), NULL, FALSE);
gdk_window_set_background (tree_view->priv->bin_window,
>k_widget_get_style (widget)->base[gtk_widget_get_state (widget)]);
}
&attributes, attributes_mask);
gdk_window_set_user_data (priv->view_window, viewport);
- gdk_window_set_back_pixmap (priv->view_window, NULL, FALSE);
-
attributes.x = - hadjustment->value;
attributes.y = - vadjustment->value;
attributes.width = hadjustment->upper;
* is then entirely responsible for drawing the widget background.
*
* Note that the background is still drawn when the widget is mapped.
- * If this is not suitable (e.g. because you want to make a transparent
- * window using an RGBA visual), you can work around this by doing:
- * |[
- * gtk_widget_realize (window);
- * gdk_window_set_back_pixmap (window->window, NULL, FALSE);
- * gtk_widget_show (window);
- * ]|
**/
void
gtk_widget_set_app_paintable (GtkWidget *widget,